/*
* created by Administrator on 2018/12/3
* 好的代码像粥一样,是得用时间和精力熬的。
*/
const mongoose = require('mongoose'); // 导入
let connect = (app) => {
    mongoose.connect('mongodb://localhost:27017/myApp', () => {
        console.log('数据库连接成功');
        app.listen(8080, () => { console.log('the server is good!') })
    })
};
module.exports = connect;
